package com.crawler.controller;

import com.core.controller.BaseController;
import com.core.entity.Condition;
import com.core.plugin.bind.Route;
import com.crawler.entity.Contact;
@Route(controllerKey="/jf/contact",viewPath="/pages/contact")
public class ContactController extends BaseController<Contact> {

	/**
	 *分页查询(json)
	 */
	public void index() {
		renderJsonPage(Contact.me.paginate(getPageNo(), getPageSize(),bindConditions()));
	}
	
	public void query() {
		Condition condition = Condition.parseCondition("id_long_eq");
		condition.setValue(getPara(0));	
		renderJsonPage(Contact.me.paginate(getPageNo(), getPageSize(),condition));
	}
	
}
